package summer_vacation.liqing;

/**
 * Created by 123456 on 2015/8/9.
 */
public class Java37 {
    public static void main(String[] args) {
        int n=0;
        for(int i=10006;i<100000;i=i+10){
            if(i%31==0){
                System.out.println(i+"");
                n++;
            }
        }
        System.out.println("\n"+n);
    }
}
